package com.one.common.model.bean;

import com.one.common.model.http.NetConstant;
import com.one.common.utils.StringUtils;

public class UserInfoBean {
    private String member_id;//
    private String member_token;//用户token
    private String member_account;//用户账号
    private String weibo_open_id;//微博唯一标识
    private String qq_open_id;//qq唯一标识
    private String weixin_open_id;//微信唯一标识
    private String member_password;//用户密码
    private String member_type;//1:普通用户 2:师傅
    private String member_level;//用户等级 ：1：普通用户 2：付费会员
    private String member_phone;//用户手机号
    private String member_img;//用户头像
    private String member_real_name;//真实姓名
    private String member_nick_name;//昵称
    private String member_birthday;//出生日期
    private String member_sex;//m:男  w:女
    private String vip_end_time;//会员结束日期
    private String order_count;//订单量
    private String order_refund_count;//订单退款数量
    private String is_delete;//0:未删除 1:删除
    private String create_time;//创建时间
    private String update_time;//修改时间
    private String hx_account;//环信账号
    private String hx_password;//环信密码
    private String hx_nick_name;//环信昵称
    private String tengxun_im_account;//腾讯im聊天账号
    private String member_integral;//用户积分

    private String assessment_star;//评论平均星级

    private String assessment_total_star;//评价历史总星级

    private String assessment_count;//评论总数

    private String invitation_code;//自己的邀请码
    private String fill_invitation_code;//别人填的邀请码


    public String getMember_id() {
        return member_id;
    }

    public void setMember_id(String member_id) {
        this.member_id = member_id;
    }

    public String getMember_token() {
        return member_token;
    }

    public void setMember_token(String member_token) {
        this.member_token = member_token;
    }

    public String getMember_account() {
        return member_account;
    }

    public void setMember_account(String member_account) {
        this.member_account = member_account;
    }

    public String getWeibo_open_id() {
        return weibo_open_id;
    }

    public void setWeibo_open_id(String weibo_open_id) {
        this.weibo_open_id = weibo_open_id;
    }

    public String getQq_open_id() {
        return qq_open_id;
    }

    public void setQq_open_id(String qq_open_id) {
        this.qq_open_id = qq_open_id;
    }

    public String getWeixin_open_id() {
        return weixin_open_id;
    }

    public void setWeixin_open_id(String weixin_open_id) {
        this.weixin_open_id = weixin_open_id;
    }

    public String getMember_password() {
        return member_password;
    }

    public void setMember_password(String member_password) {
        this.member_password = member_password;
    }

    public String getMember_type() {
        return member_type;
    }

    public void setMember_type(String member_type) {
        this.member_type = member_type;
    }

    public String getMember_level() {
        return member_level;
    }

    public void setMember_level(String member_level) {
        this.member_level = member_level;
    }

    public String getMember_phone() {
        return member_phone;
    }

    public void setMember_phone(String member_phone) {
        this.member_phone = member_phone;
    }

    public String getMember_img() {
        if(StringUtils.isNotBlank(member_img)){
            if(!member_img.startsWith("http")){
                member_img = NetConstant.IMG_HOST+member_img;
            }
        }
        return member_img;
    }

    public void setMember_img(String member_img) {
        this.member_img = member_img;
    }

    public String getMember_real_name() {
        return member_real_name;
    }

    public void setMember_real_name(String member_real_name) {
        this.member_real_name = member_real_name;
    }

    public String getMember_nick_name() {
        return member_nick_name;
    }

    public void setMember_nick_name(String member_nick_name) {
        this.member_nick_name = member_nick_name;
    }

    public String getMember_birthday() {
        return member_birthday;
    }

    public void setMember_birthday(String member_birthday) {
        this.member_birthday = member_birthday;
    }

    public String getMember_sex() {
        return member_sex;
    }

    public void setMember_sex(String member_sex) {
        this.member_sex = member_sex;
    }

    public String getVip_end_time() {
        return vip_end_time;
    }

    public void setVip_end_time(String vip_end_time) {
        this.vip_end_time = vip_end_time;
    }

    public String getOrder_count() {
        return order_count;
    }

    public void setOrder_count(String order_count) {
        this.order_count = order_count;
    }

    public String getOrder_refund_count() {
        return order_refund_count;
    }

    public void setOrder_refund_count(String order_refund_count) {
        this.order_refund_count = order_refund_count;
    }

    public String getIs_delete() {
        return is_delete;
    }

    public void setIs_delete(String is_delete) {
        this.is_delete = is_delete;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    public String getHx_account() {
        return hx_account;
    }

    public void setHx_account(String hx_account) {
        this.hx_account = hx_account;
    }

    public String getHx_password() {
        return hx_password;
    }

    public void setHx_password(String hx_password) {
        this.hx_password = hx_password;
    }

    public String getHx_nick_name() {
        return hx_nick_name;
    }

    public void setHx_nick_name(String hx_nick_name) {
        this.hx_nick_name = hx_nick_name;
    }

    public String getTengxun_im_account() {
        return tengxun_im_account;
    }

    public void setTengxun_im_account(String tengxun_im_account) {
        this.tengxun_im_account = tengxun_im_account;
    }

    public String getMember_integral() {
        return member_integral;
    }

    public void setMember_integral(String member_integral) {
        this.member_integral = member_integral;
    }

    public String getInvitation_code() {
        return invitation_code;
    }

    public void setInvitation_code(String invitation_code) {
        this.invitation_code = invitation_code;
    }

    public String getAssessment_star() {
        return assessment_star;
    }

    public void setAssessment_star(String assessment_star) {
        this.assessment_star = assessment_star;
    }

    public String getAssessment_total_star() {
        return assessment_total_star;
    }

    public void setAssessment_total_star(String assessment_total_star) {
        this.assessment_total_star = assessment_total_star;
    }

    public String getAssessment_count() {
        return assessment_count;
    }

    public void setAssessment_count(String assessment_count) {
        this.assessment_count = assessment_count;
    }

    public String getFill_invitation_code() {
        return fill_invitation_code;
    }

    public void setFill_invitation_code(String fill_invitation_code) {
        this.fill_invitation_code = fill_invitation_code;
    }

    @Override
    public String toString() {
        return "UserInfoBean{" +
                "member_id=" + member_id +
                ", member_token='" + member_token + '\'' +
                ", member_account='" + member_account + '\'' +
                ", weibo_open_id='" + weibo_open_id + '\'' +
                ", qq_open_id='" + qq_open_id + '\'' +
                ", weixin_open_id='" + weixin_open_id + '\'' +
                ", member_password='" + member_password + '\'' +
                ", member_type='" + member_type + '\'' +
                ", member_level='" + member_level + '\'' +
                ", member_phone='" + member_phone + '\'' +
                ", member_img='" + member_img + '\'' +
                ", member_real_name='" + member_real_name + '\'' +
                ", member_nick_name='" + member_nick_name + '\'' +
                ", member_birthday='" + member_birthday + '\'' +
                ", member_sex='" + member_sex + '\'' +
                ", vip_end_time='" + vip_end_time + '\'' +
                ", order_count='" + order_count + '\'' +
                ", order_refund_count='" + order_refund_count + '\'' +
                ", is_delete='" + is_delete + '\'' +
                ", create_time='" + create_time + '\'' +
                ", update_time='" + update_time + '\'' +
                ", hx_account='" + hx_account + '\'' +
                ", hx_password='" + hx_password + '\'' +
                ", hx_nick_name='" + hx_nick_name + '\'' +
                ", tengxun_im_account='" + tengxun_im_account + '\'' +
                ", member_integral='" + member_integral + '\'' +
                ", invitation_code='" + invitation_code + '\'' +
                ", fill_invitation_code='" + fill_invitation_code + '\'' +
                '}';
    }
}
